package com.strongbj.iot.devices.newlight.message;

import com.strongbj.core.message.IMessageHandleFactory;
import com.strongbj.iot.devices.newlight.response.coder.NewLightReaderDecoder;
import com.strongbj.iot.devices.newlight.response.handle.NewLightReaderResponseHandleContext;

import io.netty.channel.ChannelHandler;

public class NewLightReaderMessageHandleFactory implements IMessageHandleFactory {

	@Override
	public ChannelHandler createMessageDecoder() {
		return new NewLightReaderDecoder(1024);
	}

	@Override
	public ChannelHandler createMessageHandle() {
		return new NewLightReaderResponseHandleContext();
	}

}
